#!/bin/bash
SVN_DIR="/home/wesley/freewheel/google_svn/trunk/config/"
HOME_DIR="/home/wesley"

cd $HOME_DIR
echo "current dir:" `pwd`

echo "copying files..."
echo "  cp $HOME_DIR/.vimrc $SVN_DIR"
cp $HOME_DIR/.vimrc $SVN_DIR/linux-8.10.vimrc
echo "  cp $HOME_DIR/.bash_profile $SVN_DIR"
cp $HOME_DIR/.bash_profile $SVN_DIR/linux-8.10.bash_profile
echo "  cp $HOME_DIR/.bashrc $SVN_DIR"
cp $HOME_DIR/.bashrc $SVN_DIR/linux-8.10.bashrc
echo "  cp $HOME_DIR/.irbrc $SVN_DIR"
cp $HOME_DIR/.irbrc $SVN_DIR/linux-8.10.irbrc
echo "  cp $HOME_DIR/.pryrc $SVN_DIR"
cp $HOME_DIR/.pryrc $SVN_DIR/linux-8.10.pryrc
echo "  cp $HOME_DIR/.screenrc $SVN_DIR"
cp $HOME_DIR/.screenrc $SVN_DIR/linux-8.10.screenrc
echo "  cp $HOME_DIR/.tmux.conf $SVN_DIR"
cp $HOME_DIR/.tmux.conf $SVN_DIR/linux-8.10.tmux.conf
echo "  cp $HOME_DIR/.ctags $SVN_DIR"
cp $HOME_DIR/.ctags $SVN_DIR/linux-8.10.ctags

cd $SVN_DIR
echo "svn dir:" `pwd`

echo "svn st" 
svn st .

echo "svn add"
svn st | grep '^?' | tr '^\?' ' ' | sed 's/[ ]*//' | sed 's/[ ]/\\ /g' | xargs svn add

echo "svn ci"
svn ci .

echo "OK"
